package earth

import (
	"cgs-server/server/model"
	"go.mongodb.org/mongo-driver/bson/primitive"
)


type Earth struct {
	// ID
	ID primitive.ObjectID `json:"id" bson:"id"`
	// Name
	Name string `json:"name" bson:"name"`

	Data []map[string]interface{}	`json:"data" bson:"data"`

	model.TenantModel `json:",inline" bson:",inline"`
}

func (c *Earth) SetId(id primitive.ObjectID) {
	c.ID = id
}
func (c *Earth) GetId() string {
	return c.ID.Hex()
}
